On the Origin of Clockwork, Perpetual Motion Devices, and the Compass Chapters