fixed the --basepath option and removed an unused variable from mapbuffer.cpp