Updated bench to support Windows (MinGW) build.