Prepare to add OpenWRT Makefile
Various changes to make the code compile cleanly if mapmin is an OpenWRT feed.