Approximate Linear Programming for Average-Cost Dynamic Programming