Make optional compilation work