Make reference return type const for gcc 8