Fix ruby support.
Add compile helper.