Moved RefCount to own file and used that class for ref counting instead of a plain int in the classes SGIO,Version and Parallel
Merge pull request #1399 from van51/feature/refcount

Made thread-safe refcounting in SGIO, Version and Parallel