Fix various issues in swscale for PPC