Fixed C89 compliance (necessary to compile on Windows)