Use @GOT instead of @GOTOFF for non-local symbols

This makes it compile on Solaris (though exceptions don't seem to work
on Solaris).