Allow customization of the aim_main() function name.

Reviewer: trivial