fix glib 2.36 compilation issue with atomic ops.