update ctools to 7.x-1.4
Apply ctools patch
update flag to version 7.x-3.4
Apply flag patches