Gui: Avoid linker error by not including unused files in gui cpp files
Add c++ support to configure.ac
Fix remaining compiler warnings, add extern 'c' to some header files to be usable by the c++ gui part