BUG: Fix Qt compilation issue + simplify library logic

Compare view:
http://github.com/NIRALUser/DTIAtlasBuilder/compare/a399dbd...498c299