updated cake files to enable shared library build on mac - and I hope on windows as well...