make local functions static, in Caption.cpp and Tabs.cpp
define some undocumented messages in Caption.cpp