OSX: fixed warnings