Use GString for path in creating c plugins, fixed hook name in test-c-plugin