lib/replace: Add missing check for sys/wait.h