Make `derivedConstants` more crosscompile-friendly