Qt5 support

This is based on VanNostrand's initial qt5 port; compiles and run fine on - at least - osx.
Note to self: Check if this results in changed behavior when upgrading versions