Add mac support

Add build and test targets for mac support