[Olena-patches] r2677: Add some debug infos and an uber-simple getopt