Migrate to QBS, move libs to a submodule, port to Qt5.