Changed optimization flags and proper lookup of SDL
Fixed warnings and weird indentation
Merge pull request #1 from gizmo98/master

Add changes from https://github.com/npepinpe/gpsp