cmake: fixed incorrect usage of add_definitions() on Linux
Merge pull request #1487 from alalek:fix_add_definitions