Changes to fix compiler errors with beta 3 and 4

Fixes compiler errors due to Swift language/compiler changes in betas 3 and 4.

For outlets, it explicitly implements the previously implicit behaviour, i.e., weak and unwrapped.