Fixed compilation errors and upgrade to latest yesod