move -lcrypto linker flag to after objects