fixed units.h compilation differently #859