Added symlinking of g++ and consolidated both build functions into a single cross-platform build function.