remove deprecated packages, workaround grantpt error after building