BUG: Fix windows compilation errors