Fix mingw-gcc 'ordered comparison of pointer with integer zero' warning