Conditionally disable non-portable code.