Create build script to generate XBoard.app for OS X

this relies on the the gtk build and adds some special code in
gtk/xboard.c so that XBoard can be installed inside the app directory
independ on where the app file is located.
try fixing localedir