qt4 immodule: Add missing <clocale> include

The commit in this pull request adds a missing locale.h include that was being relied upon implicit before. It made the build fail on platforms such as FreeBSD 10, which use libc++ instead of libstdc++ by default.