[SfM] fix for openMP