Build fixes for the ports and some warning fixes.
Minor SDL 2.0 fix