Fix build.
Remove cruft.
Add crypto stuff for Qt5.
Fix qmf messageserver start.
Remove obsolete environment variable.