Fixes for building on Mac OS X.

This patch allows aSmack to build on Mac OS X without further customization.