Reverted project to .net 4.0 to test with build server
Added missing references for release build