eliminate 2 compiler warnings in OSX