Settings:/quicksettings: allow flip animation on clicking a tile (1/2)

fix building
more fixes, thanks to Dave Kessler
ported from this commit :
https://github.com/PAC-man/android_packages_apps_Settings/commit/99c5d2428bd2380e740cd54ccc25772b15a4f3ed