cleanup resource compiler code
use bool type where it is possible
correct return value types to not mix bool and RcStatus type