update formula for wesnoth

The new formula uses scons instead of cmake, as that is much
better supported by us (our cmake recipe is sometimes not well
maintained.)

It also adds some missing dependencies, and is fixed to use the
keg-only gettext.
Can you please file the issue about sdl_image linking to the wrong libpng with Linuxbrew?