Make library work on OS X as well.