Fix "'setpriority' was not declared" error.

- Include <sys/resource.h>
Merge branch 'setpriority-fix'