use wxDC#IsOk instead of (at least in wxwidget3.0 non-existent) wxDC#Ok

First commit fixes a compile error for me.

Second one avoids casting an int to a void* which leads to problems in 64bit systems