MAX_PATH is in limits.h on smartos
fix some header references