added compile directive for old-style Windows locks