Ubuntu cmake fixes

Some fixes required to build client on Ubuntu 10.04 with old CMake version