fixed warnings. There is a problem with bsv.cpp will be fixed