I think that you have to define LD_LIBRARY_PATH=your_gcc/lib. The binary file will be small because you're using dynamic libraries.