Fixes for non-linux OSes.