fix linux compilation errors

I have made some minor changes in order that the code compiles in linux: removed "inline"s, and added "const" in one function in common.hpp.