Remove unused defines.
Link math library.
Cleanup .gitignore.