fixed a crash when it runs due to a recent changes in mongoose(adding 'thread_start' and 'thread_stop' in 'mg_callbacks').