reinstate some warning flags that I accidentally removed

also change AC_FUNC_MKDIR_ARGS to a link test instead of a compile test
to see if that will cut down on the false positives