Don't link statically with rct multiple times
Capture warning flags and pass them on to clang.

Fixes #123
Turn on -Wall and fix warnings that exists on OS X