Fixed missing include of assert.h in RWLock interface