Fixing compilation errors in the x265 encoder