Make library work on non-Linux unices