Fix bug "sh: autom4te: command not found"

When building under Mavericks, user gets error:
sh: autom4te: command not found
although the sources compile perfectly fine by hand.
This patch fixes this bug (maybe the same needs to be done for 'pkg-config').