qcommon+sys+server: Fix C++ compilation