compiler in C++11 mode
remove register key words
add testing headers