added static keywords to prevent problems when using cpp files: https://github.com/GraphChi/graphchi-cpp/issues/3