don't talk about resource if all methods are excluded
fix compile failures with update to ruby 1.8
fix for #33: compile errors in obj-c module