Simplify build_gateway.inc handling ...

Use GMake string functions / MAKEFILE_LIST and include and lib paths provided by mysql_config script to make editing of build_gateway.inc unncessary in most cases ...