enable random enum attribs
Fix linker errors