Fixed an issue preventing compilation with hdf4 support with Visual Studio.