Various fixes to platform support.

Removing old build events, improving shim config, updating nuget content
and removing old code.