Only define NELEM if not already defined

Dragonfly has NELEM in param.h