ENH: better compilation strategy