BUG: fix windows pointer size problem