Fixed some compiling issues.