qt5webkit: fix debug and non-production builds

explicitly distinguish between release and debug build; qtwebkit defaults to producion builds but some of the post-build hooks depend on functionalities that are only part of a non-production build