Fix up FD_SETSIZE errors
Enhance logging on RTP socket failure
Fix casting warnings