fix OS specific stuff