Redifine BEGIN as BEGAN and remove #undef BEGIN