Platform dependent utilities, used by Mylly GUI library.