Started working on getting code to compile in clang.
Code now compiles using clang.
Merge pull request #224 from xycaleth/master

Fixed code to compile under clang on Mac (hopefully Linux too).