Added code to try and load wxwidgets and phar extensions.