Fix compilation under MSVC, bind some fucntions