use -fPIC for magot.o only
fix errors in example