Support .ane for -swf-lib and -swf-lib-extern.

Thanks Simn, closes #2011.