fixed compilation

- fixed compilation Win 8
- fixed compilation Linux Debian/others
- some updates