fixed some compiling issues