Partially fix issue #24.
Fix automoc, qrc support still missing.