include <limits.h> for PATH_MAX

I need to include <limits.h> in order to use PATH_MAX, Otherwise it will
not build at mine. I believe it is standard compliant to do so:
http://pubs.opengroup.org/onlinepubs/009695399/basedefs/limits.h.html

Backport of I3f124466f7f7742e94a9d1256bc9239ec16aab04

BUG: 764655
Change-Id: I92c79dfd439f41bfa2a970c16c13a60ea6baa2f8
Signed-off-by: Emmanuel Dreyfus <manu@netbsd.org>
Reviewed-on: http://review.gluster.org/5342
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Anand Avati <avati@redhat.com>