Various adjustments to make the SDL2 linking work
The SDL2 sample also compiles on Red Hat 6 now.