Include <stdexcept> for std::runtime_error

Change-Id: I6ef2036f075c2992b692d9a227db257edc4a6955
WaE: unused variables

Change-Id: Ia5bdfd7db7ed2769b34e8dbd7e0ed7dbe5499d34
WaE: implicit conversion of literal of type 'const char *' to 'bool'

Change-Id: Ia0c05b93bbb5a399257d0e1ab8670aa95be01fd7