packaging: Add support for enable_static_pie project config macro