Fix gem building

Make sure gem can be build using target 'gem', even though doc generation might fail
fix error: call to 'ref' is ambiguous

compiler error on OS X
Merge gitorious.org:rock-toolchain/roby