Fix optional build.