Fix build for wx 2.9.5, along with an RPATH issue.