修正了一些Apple OSX下面编译的错误.

Signed-off-by: shines77 <gz_shines@msn.com>