added -Wno-unused-but-set-variable to enable compilation on Ubuntu 12.04
ignore SIGCHLD to prevent zombies