buildtools: add the PRIVATE_EXTENSION for private libraries