core: Add GLib version check to build with GLib before 2.31.0

GitHub: fix #37
core: Fix indent