Build static library and use SDL2_static.