Fix segfault on OSX by specifying 'restype' of gp_context_new()