Make the code compile under older Windows versions.

Signed-off-by: ChangZhuo Chen (陳昌倬) <czchen@gmail.com>