Move build point and mining related functions to new file g_buildpoints.cpp.