FIX: couldn't AOT compile due to define-constants