fix some other compilation problems in segment storage, ready for some debuging