Performance tweak: reduce number of function call of strlen()
Add check for EOF to prevent infinite loop

Fixes #299
Merge pull request #300 from lee-dohm/bug-299

Add check for EOF to prevent infinite loop
Merge pull request #297 from yongzhy/fea_strlen

Performance tweak: reduce number of function call of strlen()
Don't call lzma functions if we don't have lzma.h. This should fix #280.