Makefile & sync script

* Added ldl and lz libraries for linking (needed in static linking)
* Static linking does not work yet.
* Added libcrypto 1.0.0 lib for dynamic linking on aisa.