AMD64/x86_64 is more picky about linking objects into a
shared library, in that they must be compiled with
-fPIC. Further, and maybe this should be a separate
issue, the library would not link without the math
library (-lm), so this patch addresses that, too.
Patch against 3.1.2 Makefile.linux to allow building on AMD64/x86_64