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
Merge pull request #4 from nyue/master

OS X (initial) port