added declares for Gambit compilation