support dll, fix GetStatusWaitingCount thread safe bug in linux