Add conditional for osx required library