removing some compiler warnings on MacOSX