change the way boost is used and also make all link libraries private