Fixed preprocessor problems, and added setPixel to Texture.