Updated libraries to 4.5 and changed fx to 4.5

Also, added the resharper cleanup to the rakefile and addressed Resharper
errors.