Make a static library and use SDL2_static build.