Fixed LoadPlugin compilation errors on G++.