Link Math added

Added -lm to the compile line for the shared version of the program.