Log Message: Use libffi's closure handling based on code from the upstream branch. Adjust test cases to not use alloca.h on NetBSD. Use a temporary directory under WRKDIR and allow C++ when test builds are requested.