Configure Boost with autoconf macros

This commit fixes the build failure `library not found for -lboost_thread` on
OS X / Homebrew and improves build.
Merge pull request #18 from seanchas116/fix-boost

Configure Boost with autoconf macros