[loader] protect QCoreApplication construction

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com>
[c++11] conform to stricter gcc 4.8 requirements

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com>