make local functions static, in Caption.cpp and Tabs.cpp