fixed compile errors in Xcode with include header files