fixed some compilation issues if certain c++11 features are available