CMake: Use add_definitions for compiler flags

Fixes #193.