fixes, so compiling Rnw works