Add empty main function.
Hook main function into program, add context constructor.