c89 compiler & visual studio compile fixes