fix building on OSX

Change-Id: I687d5c0c6acc134d518d52d099723d99087d61c9