fix compilation issues in Windows