fix mem leak
debug
add pthread lock
test windows
test minecraft