Avoid double compilation of exported class.