Add mac support

fix #37