Enable FrameworkVersion and allow Nuget packages without references (plus fixes)

Additional changes to #2.