Drop Semaphores/RWLocks + Generic Search Paths

cherry-picked commits from Andre Schulz's win32 branch