fix the build of the recognition module on Windows