Add missing framework dependecies, mark as static library and set up library paths. Also flatten zip to make file copying easier.