Make Quail AMD friendly, so we can use it without polluting global scope