fixed building library