Fixes for windows compilation

All examples are working properly