Fix standalone executable support.

Fixed cmh_link_modules() so that it works for standalone executables,
and updated the standalone executable examples.