fix issue with building in v11 using nanreturnvalue