fix header-only file crash, fixes #67
Merge pull request #68 from jodiecunningham/master

fix header-only file crash, fixes #67