Build fixes, minor refactoring with libQWebSocket.pro