add basic support for SDL lib.