Mac OSX build adjustments

Here are some changes that enable DoUML to be build on Mac.
Please check, but I believe the changes are harmless to Linux and Windows builds.

See further comments on
https://github.com/DoUML/douml/issues/67#issuecomment-20784262