Add SUN_LEN compatibility macro for Haiku

refs #7115