Attempt to fix compile issues for Windows

Signed-off-by: HACKhalo2 <hackhalo2@gmail.com>