Fix build by not using MSBuild features Mono doesn't support.

Don't use <PropertyGroup> and <ItemGroup> inside targets
because mono's xbuild doesn't support that. Use the
CreateProperty and CreateItem tasks instead.
Clean the dynamic assembly info .cs file that gets generated.

The target was always there but never added to the clean process.