fix XCode build error when used as library.

fix issue #13 https://github.com/alfredh/baresip/issues/13