fix missing header file and object file bugs