The easiest way to be able to create an assembly as UNSAFE/EXTERNAL ACCESS you can do this:
1. Mark the database as trustworthy: ALTER DATABASE db_name SET TRUSTWORTHY ON
2. Give the login of the owner of the database the right permissions: GRANT EXTERNAL ACCESS ASSEMBLY to userlogin.
That's it. You can now create an assembly as EXTERNAL ACCESS/UNSAFE.