Fixes undefined references to `sleep` etc.

Not sure why it's needed on my system, but not elsewhere.