Patch that adds -lm to linker arguments