Added #if Target… pragmas to all methods that had been missing them

- Only for methods that have declares.
- Checked compilation for Cocoa, Carbon, Windows, and Linux in Real Studio and Xojo.
- V.158.