I did have NATIVE=true. If you have NATIVE=false you also have to install ocaml to the device, right? The problem was some stupid linker flags the build environment set automatically. I had to clear them in the spec file.