adjusted include paths
OS X compiler complained about no return value from main()
Use <stdint.h> for various integer types with specific sizes
Fix various const reference argument issues
Added c++11 flag