missing libm.so.6 and libstdc++.so.6
You just discovered why you need to rebuild applications for different flavours or even versions of Linux. Some might run on some variety of other distributions, but there is no guarantee.
In general, build your application on the machine (or at least on a machine with the same distribution) that you want to run it on. Or, better yet, build software packages (.deb for Ubuntu / Debian, .rpm for SUSE / Red Hat / Fedora / CentOS) to automate the process and to ensure that dependencies (like those shared libs) are handled automatically.
No, that's not an easy thing to do, but it's a necessary thing.