Added #if to handle newer version of wxWidgets. The definition of wxStandardPaths changed and in version 3 of wxWidgets the code has to be changed to compile