compatibility to C89 for Windows build