Fix Windows BOLEAN incompatibility