fixed all error for source compiling