Check for glib-compile-resources

Glib-compile-resources is used directly when building. Check for it in
the configure step and use a variable instead, with a proper error
message upon failure.

Signed-off-by: Marcus Karlsson <mk@acc.umu.se>