Made strstrip() static
Whitespace fixes
Prevent negative array index access when a line solely consists of newlines and spaces
Merge pull request #42 from xsquared/master

Prevent negative array index access when a line solely consists of newlines and spaces
Merge pull request #41 from ahippo/trivial-fixes

One more static + whitespace cleanup.
use cmake for build