add resource embedding helpers.
typos and fixes.
port to the homemade bin2.c

adapt the code to the new naming.
reconvert the resources with the new tool.