Or for those who are looking for a quick answer (and are on linux), the magic is simply to add the following flags:
-l boost_system