Merge pull request #19 from bkaradzic/master

Fixed all compiler warnings.
tests: fix warnings
fixed #version parse regression on Mac since e3ba06e
tests: line endings