Fix order of ccall args for sprofile_init