Add some RARCH_INTERNAL checks to resampler code to make it
easier to export outside