(Nearest Resampler) C89 build fixes