fix pandoc on Mac OS X