Fixed the compiling issues.