Lines 365 and 366 were in the reversed order
Corrected some typos in various #defines found by the freebsd cc compiler
in 10.1