Fix #167 Fixed some compile errors when compiling native target on OS X Yosemite.