fixed sgs2c bugs, fixed include() success detection