Add standard math library to linker flags

Only when compiling for non-Windows platforms