Fix build after switching to c++ compile.
Automatic source format enforcement.
Update travis config to C++ environment.