Implement SDL as a generic-platform interface.