Fixed compilation errors on Windows with older MS compilers and with GCC.
Merge branch 'master' of https://github.com/noop-dev/c-cgdk