fix compiling problems