[m] Modified create sdl function to use better flags