fix Darwin build, dynlib to dylib
add generated Encrypt files to gitignore