Chirally improving Wilson fermions 1. O(a) improvement