link output_sdl statically

I think this is a more elegant solution than creating a 10 KiB library.
I believe you should move ${CMAKE_C_FLAGS} at the end of the list. What if I want to override it with different flags?