ifdef out use of linux/limts.h in test_avatars

This fixes building on OS X and other systems whose limits.hs have PATH_MAX.