Fix static linking of Boost