os x port initial

compiling on Mavericks
1、add endian.h for OS X
2、sh-3.2 bulltin echo does not support '-n' option, fixed
3、fix the ldflags for ld64
Good ieda!
As it is just a trying to add OS X support, it's on bleeding edge.
I've stopped it for some day as I'm very busy nowadays.