Fix build scripts - Qt 4.7