Fix legacy mode goform compilation