Portability fixes/enhancements.
Merge branch 'dev' of https://github.com/browndav/medic-os into dev

Conflicts:
	platform/source/medic-core-1.6.0/scripts/include/builder