Move resampler implementations to a -c version. Compile some of the functions with other flags to make them more optimized.