added patch for compilation errors