Fix code generator for the executable on linux and support more dtype.
Make real test of shared lib test file.
Make executable example work with more dtype and ndim.