Removed std::max dependancy

* Removed std::max dependency to address mac/linux link issues