Fixed some std:: namespace issues for OSX compiles.