ws: Move G_LOG_DOMAIN define to fix build on clang

Closes #1303
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>