helpers for creating SDL apps