fixed path of depencies
fixed casting of std::min std::max functions