Fixed compilation errors in appengine api