CLD, POLL, PWR are sometimes not available either.
No need to include non-standard malloc.h
Add missing signal.h include
Add portable align
Optionally link inotify library