Don't link libcJSON against libm on Haiku

refs #7115