Compile X11 and ecore_x stuff only when ecore_x is detected on the build machine
Use CalaosConfig.h instead of Config.h as there is a conflict with config.h auto generated by autotools on insensitive case systems like macosX
Fix error detected by llvm
cmath has to be included otherwise std::floor is not found
Check correctly if file is open
MSG_NOSIGNAL doesn’t exist on macos,  use socket option SO_NOSIGPIPE instead
json_array_foreach has been added in jansson 2.5, as it’s just a define, let be cool with old guys having only jansson 2.4 and redefine the macros.
Fix Typo
Fix ecore_x link