Merge branch 'upstream' into libretro