Fixing build for wxWidgets 2.9.4

* Use wxPrintf if building with wxWidgets 2.9.4.
* wxCHECK_VERSION is used to determine which version of wxWidgets is used.
* Makefile adds -DNDEBUG to ensure a release build.