Added a waf-based build system.
Fixing Clang compile errors.
Merge pull request #1 from DoomHammer/master

Adding build system and fixing some Clang errors.