Can't readily test because you haven't supplied lib/Mytest2.pm. What does it look like ? (I guess I could plough through the perlxstut documentation, but I'd rather not :-)
As a quick thought, make sure that the .h and .c files end in a newline (empty line).