Fix ifdefs regarding READ_PIXELS.