Fix compilation unde MSVC, bind some fucntions