Use g_snprintf instead of snprintf

Use g_snprintf for consistency with the rest of gobjectmodule.c
configure.ac: Use -std=c90 and error on declaration-after-statement

Replace gcc option of -std=c9x with c90 and add
-Werror=declaration-after-statement
This ensures we keep compatibility with msvc builds.