You don't need this .cpp file. Please drop it and the bstools library.