Should fix an issue with the cpp wrapper on windows

please report if errors persist.