[rpm] use statefs_loader_install macro

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com>
Merge pull request #1 from deztructor/reliability

using statefs_loader_install macro
[loader] fix 64bit build
Merge pull request #2 from sledges/master

[loader] fix 64bit build
[loader] protect QCoreApplication construction

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