Fix pure integration
Some awesomeness for mac os integration