changing c++ standard library and language dialect solved a lot of issues