fix nif loading/compiling