libreoffice-5.0.5.2 build fails

I am trying to build libreoffice-5.0.5.2 from source on linux Slackware 14.1. All the dependencies are installed and the configure script finished with no problems but a little ways into the build I get the error:

libreoffice-5.0.5.2/chart2/CppunitTest_chart2_export.mk:23: *** Cannot link against library/libraries vbahelper. Libraries must be registered in Repository.mk or RepositoryExternal.mk. Stop.

I find vbahelper in Repository.mk.

Anyone have any ideas why this fails?

Thanks