Segmentation fault fix + Makefile

* Fix a segmentation fault in amp_to_amp; for some reason from can be null in this function (e.g., when start-index is high)

* Makefile : with some version of gcc, the LD_FLAGS must be at the end of the command line (no idea why but linkage did not work on my computer because of that).


And thanks for your server, it works great!