use add_definitions properly on Unix