Compile fixes for c89 compiler & visual studio