Fix some compiling issues.