Undefined variable in lambda

Clang is complaining about a possible undefined variable when using
closures.
Invalid conversion from integer to string

There is no valid integer conversion to ostream. Using the std::string
to convert the integer to string before calling the operator <<.
Clang compaining about close

Clang cannot find the close function. Added the unistd header and changed
the call to not for the function inside the class.
Deprecated std::auto_ptr

Replacing the std::auto_ptr deprecated to his substitute std::unique_ptr.
Variable length array of non-POD

Clang does not support variable length for non POD. Changed the argc
to be static const.
Clang doesn't support variadic arguments in lamba

If Clang, creating a define that will first create the message string
and then call the lambda without the argument list.
Added BASE_DIR for tests

Tests are now supporting a BASE_DIR define, that will tell to the
project the absolute application directory location.
Autoconf and Automake configuration files

It contains all rules to configure and generate the Makefiles
for this project.