bit compiling fixes