Added initial support for SDL