Qt5 support

This is based on VanNostrand's initial qt5 port; compiles and run fine on - at least - osx.
That's just a mean API change.