fixing build for mac os maverick