Correctly link by using G_BEGIN_DECLS