Qt compatible test version

Patches for missing global namespace and lack of WebSockets. Should be
built as other platforms eventually