Fixed rebind_tuple, windows compatibility