Added workaround for GetPixel on OSX not working.

This is a wxwidgets defect: http://trac.wxwidgets.org/ticket/4473.