Fixed NULL redef error by reordering sgen.h include + rebuild