Merge pull request #23 from textmate/master

Add ‘ifndef … endif’ guard around thread locking macros
Add option to indicate search range is not begin/end of string