Math library error fixed

Math functions like sqrt() when used in .c file was flagged as a compile error unnecessarily.
Hence restructured the compile command.