Add -Wno-stack-protector to make it buildable on 32-bit 12.04 Ubuntu.
Added RD_SOCKADDR_INX_CMP()
Force rd_thread_poll() exit of thread is exiting, even if there are pending events