"Working" Qt 5 port.

Still needs work on includes, .pro file resources, new OSX memory leaks.