Fix for boost was taken from https://github.com/tsuna/boost.m4. File 'boost.m4' was renamed to 'ax_boost.m4' respectively.