Fixed a_star.cpp for Xcode 6.0