Standardise libraries on `defined('JPATH_PLATFORM')`;
Closes #3729