Fix C++ compiling
Fix ROM stat file