added missing cast for GetProcAddress