Added os specific directories to ignore list

added:
/platform_windows
/Library/Frameworks
use mkdir on windows
Only compile debug function in debug mode
Windows fixes