remove >register< keyword (deprecated)

or not advised by clang for c++11 (and not supported by most compilers at all)
Merge pull request #35 from breznak/silence_warnings2

remove >register< keyword (deprecated)
revert forgotten use of auto

from c++11, wanna stick with c++98 for now
Merge pull request #37 from breznak/use_c++98

revert forgotten use of auto