floatd is not needed in lite-C. Just use

mtl.matrix31 = my.skill1/256.0;
mtl.matrix32 = my.skill2/256.0;

http://manual.conitec.net/afloatd.htm