Fixed include directories and compile errors.