Borrow atom implementation from libxkbfile