Qt5 support

This is based on VanNostrand's initial qt5 port; compiles and run fine on - at least - osx.
How could we live with the old API?