Use more robust AX_BOOST macro taken from https://github.com/tsuna/boost.m4/pull/8