Thread/Handle: remove global namespace references

This breaks if one of these functions is a macro.
SDL/{Queue,Key}: downgrade SDL version checks from 2.0 to 1.3