Remove "register" keyword  to fix C++-11 warnings