Added wxPreferences, it might not be installed correctly so add extra
check