More on issue #27. This change should also fix the issue with some OSX targets originally discussed in issue #21 (but unrelated to it) and now folded into this issue.
Problem was that the affected targets did not have the required references to the platform codes they were essentially variants of.