Fixed up some renderlib issues