Fix parsing of thread count.
fix compilation on linux