add fix for C++03
Merge pull request #165 from da2ce7/develop

add fix for C++03