[cmake] fix wrong build dependency of dcopidl
better compatibility with newer gcc
fix annoying gcc warnings, naming an anonymous namespace
detect 64 bit platform and set KDELIBSUFF accordingly