c89 compiler & visual studio compile fixes
Merge pull request #40 from tv-s/master

Compile fixes for c89 compiler & visual studio