Add -mac library and example