Runnable Version with MarssX86 20140529.
fix the deadlock and write_cb not found bug.