Initial SDL porting