Ananth commit

Fix mavericks build issues
Add a way to change UT_DEBUG to SYS_DEBUG so that UT_DEBUGs can also be used during unit test in web ui.
Fix name space collisions for error_code between std and boost::asio