remove register specifier, deprecated in C++11

The register storage class specifier was deprecated in C++11. Clang now warns about this.
More info: http://en.cppreference.com/w/cpp/language/storage_duration