BUGFIX Fixed problems with printing on Windows: now we use crossplatform solutions. Also errors was redirected to stderr.