Missing attr.h from previous patch added.

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Some statistics was printed when only NN_PRINT_ERRORS is enabled
Fixed ugly statistics socket creation