fix #18. compile error on non ZTS mode.