Move scaler code over to libretro SDK