Fix some warnings on system(3) usage.

Some systems have it declared with warn_unused_result.