Revert "Remove SDL 1.2"

This reverts commit 700dfbf21fd366fcee04acfbbe782a9ef6826557.
Add compile fix patch for SDL 1.2