add missing include of <cassert> (thanks nodenstuff)