added missing dependency on sleep

Change-Id: Ieca8d8fe23e6d059d1f78a261ab93b53d5ea39d2
fixed race condition with bind and setBroadcast

Change-Id: I43e70c936d288be97511cadd99d1a6b3c93776ca
Merge pull request #6 from stevecraig/master

Fixed missing dependency and race condition