proper quoting for newer autoconfs, add some macros from MacPorts