Windows specific tweaks and added qt constants.