Improve detection of when forward declaration or #include is needed
Merge pull request #31 from r-e-d/master

Improve detection of when forward declaration or #include is needed