Use /bin/sh instead of /bin/bash
FD_SETSIZE hack only for Linux
Added ifdefs for SIGCLD and SIGPOLL
Do not use accept4() on non-Linux systems