Make optionstruct global

Declare the struct holding the configuration extern. It is not anymore
passed to print_verbose which uses the global struct now.
Use /usr/bin/env for perl

Invoke perl interpreter with env if the file is executed directly.
Make Function bracket placing consistent

Change all function definition brackets to open in the line between the
name and argument list and the body and close in a single line below the
function body.