Update main.mk

Adding -lm to Solaris makefile