added guard against the case where no UDUNITS library is available