Ros shared lib base class

If a complete function body ends up in an #ifdef, its clear this problem should be solved by inheritance, not by #ifdef ;-)