Test for getrusage() instead of the existence of resource.h