Fixes for Max plugin compilation when not using PCH

This should be a better fix than previous attempts, since the breakages were due to PCH usage, not header differences.