swap UV_SHARED flags back