Update makefile.linux

GCC broke compatibility by changing the default linking behavior to --as-needed. We have to switch it back or math breaks.