This PR adds and option for cmake that enables colored output of errors and warnings. works fine with gcc >= 4.9. Is is maybe necessary to prevent this from being set when using an incompatible compiler? If so, whats the best way to do this? I propose @tammoippen and @apeyser as reviewers.