Drop Semaphores/RWLocks + Generic Search Paths

cherry-picked (and slightly adapted) commits from Andre Schulz's win32 branch