Alias global math functions instead of names in std:: to avoid warnings
Fixes #476
Fixes #502
Explicitly link against libm if g++ won't give it to us for free
Fail the build if we encounter an unrecognized command line variable

Fixes #506
Merge pull request #507 from jaredhoberock/issue-502

Issue 502