MacOSX: Some small Fixes