make sure library directory is built