Fix compile errors that are raised in Xcode 6.1
Change the weekday of a date