Couple of fixes for clang

Though there are still some errors with clang, i decided just to switch
to llvm/gcc
SDL SP nearly links on OSX!
ack this is a hideous mess

intending to redo this again...