Added flag to link against math libraries