Fixed issues with generated resources files for NET45