Hey Ilya,
OSX switched their standard C compiler to cLang in OSX 10.5 or about. Our inline directives we use mean something subtly different to that compiler than to gcc, I have a branch on the mercurial repo on google-code that removes those directives. Ward hasn't had any problems compiling and running with that version and even on the new OSX Yosemite.
hg update clang-compatibility
then you should be good to go. In the near future I'd like to take the diff that gets applied, and package that into the configure script and run it when using clang. But for now, as it was just a test to see if this was the only issue, and it looks like it is.
nick