Fixes for linux

Compiler and some samples can be builded on linux.
There are problems with swig and some other tools.