Build/CMake: Compile the minimum of dependencies possible

mysql if SERVERS, zlib, g3d and recast if SERVERS or TOOLS