Fix #61 in osx