Convert to nonrecursive makefile, add examples to makefile as extras with custom 'examples' target.