Changed optimization flags and proper lookup of SDL