Mac port

Please pull this Mac port branch and try to integrate your stuff with it. I'm sure it's ready to be merged into master:)

![2014-10-07_02h39_42](https://cloud.githubusercontent.com/assets/1939421/4535541/86b965d0-4db5-11e4-9c15-268c8b31dc5e.png)