Minor fixes to allow compilation without a platform.