Auto detection for tools using the Polhemus tracker fails when built in debug mode but is fully functional when built in release mode