Explicitly link against `libm`

This may be required on platforms such as Windows