added signal/pthread for linux