fix build system for cross-platform and cross-compiler compatability

Please review and comment:

Fix the build system and simplify the repo by removing unnecessary files.
Switch from Xcode project to Makefile build system to be IDE/editor-agnostic.

-Chris