How to build libdsm for iOS system?

Hi, macromizer. Thanks for your good job. 
I'm trying to build libdsm library for iOS system, but no success. 
Can you share some details to us? Any help will be grateful.
That's fine. I wasn't actually expecting anyone to make a pull request with those changes. They were just some local stuff I was playing around with in a separate branch.