Thread termination was using wrong VM member (change state to threadState)
Shut compiler up (for FFI).