fix Mac OS X build and update README