Added license headers to the most relevant files
Fixed: std::string::pop_back() requires C++11, we shouldn't use it