added building of shared libraries under Mac OS X