Fix bug where debug flags weren't included