fix error when building headless w/o SDL2 installed