Added temporary file creation functions.

(cherry picked from commit 66d1a6c5b34c9a27057f3a5ebabcfa0d6b4d0ab1)

Conflicts:
	dependencies/android/.project