rollback to SDL1.2, fix many cmake issues on windows

Change-Id: I2b0da1f34b369580f9fc62804295475cca4fb3ca