Add OS X adjustments and fix grep searches

Under OS X, the script uses now GNU grep ('ggrep') instead of BSD grep
and the 'open' command is now used to open resulting PDF documents
after compilations.

Compilation errors search has been improved.

Some output messages have been modified.

Since this version, the script is tested also under OS X, hence new
minor version number.