Changed optimization flags and proper lookup of SDL (no pkg-config though)
Fixed warnings and weird indentation