update source code to be tolarant with compiling with dynamic boost