Fixes for stable operation with SIM_ASYNCH_CLOCKS defined