Fixed configure/libtool issue on OS X by placing AC_PROG_LIBTOOL after AC_PROG_CXX.