Fix build after switching to c++ compile.
Automatic source format enforcement.
Fix crc table in 32bit mode.
Update travis config to C++ environment.