Hacky SDL2 support. DO NOT MERGE!!!