bytecode: fixed a compiler issue and warnings