update macosx.m4 and configure.ac patches