Fix .tar.gz unpacking in Windows

From http://docs.python.org/2/library/os.html#os.open:

"In particular, on Windows adding O_BINARY is needed to open files in binary mode"
Fix invalid open() flag on non-Windows machines

O_BINARY seems to be Windows specific.
quote toolchain path; normalise include paths
Added support for harvesting resource files and determining plist file for osx projects
rmRf should work on non-directories, too
Revert "Added support for harvesting resource files and determining plist file for osx projects"

This reverts commit 46b5c1f3a57e123f75e8077800789c41fd1892de.
return failed dependencies when listing recursively; refuse to build if dependencies are missing
Added support for harvesting resource files and determining plist file for osx projects
Merge branch 'master' of github.com:armmbed/yotta
Merge pull request #58 from autopulated/master

Windows-related fixes, and refuse to build with failed dependencies.
Merge pull request #55 from bogdanm/fix-win-unpacking

Fix .tar.gz unpacking in Windows
Fix colour sequences on windows.
Merge pull request #57 from thegecko/master

Added support for resource files.
escape backslashes in paths in generated CMakeLists
Merge pull request #59 from autopulated/master

escape backslashes in paths in generated CMakeLists
Include full Apache license text in license file.
add license section to readme
Ensured auto-generated cmake list names are unique for each library
Initial support for links under Windows

Tested only with 'link' (not 'link-target').
For now, does all the linking under C:/Program Files/yotta/...
Merge pull request #61 from thegecko/master

Ensured auto-generated cmake list names are unique for each library