compile with Farhod's patches