Fix library references