Scots library wins an ‘Oscar’ at public building awards