Resolve reference issues with libraries