Backport to Qt 5.0
Added debian build rules
manual merge