Make flags actually work, plus fix include file.