Pass -D SDL when SDL is used
Merge pull request #247 from g2p/basic-layout-detection

Part of https://github.com/hrydgard/ppsspp/pull/5264