Replaced hardcoded boost libs with CMake variables.

@TomFischer @endJunction can you please test this on your machines? It works for me and on dev2.