Add const specifiers to j0g_* functions