Ruby 2.1 compatibility

Rename 'sync' as 'sync_' since it is used by Ruby itself now (Partial fix for #22)