cmake: fixed incorrect usage of add_definitions() on Linux