-pthread is correctly passed to gcc-compatible builds again.