impl thread stack size for pthread