Fix PixelMap compilation issues