build: fix build for “bytecode-only” platforms