autogen for MacOSX

tested on 10.8/i386 and 10.9/x86_64