Fixed undefined references caused by lock and unlock declarations in window.h.
LLVM 3.5