Fix library build