Upgrade guard.
Fix linker options on non-rvm Linux environments.