pthread added, linux core dump issue fixed