replaced target_compile_definitions() with set command to work with ...

...cmake version 2.8.8

The target_compile_definitions was introduced after cmake 2.8.8. I don't think, we should require this just because of one line in CMakeLists.txt.
@eile do you think that's reasonable?