Fix glib warns and add #error when using non-compact classes