converted to a static lib for iOS and iOS Simulator

dbgCheck uses sysctl assembly interface in iOS
dbgCheck uses sysctl C interface in iOS Simulator