Fix classlibs build on osx.