package: enable everything possible in MinGW-w64 PKGBUILD.
Use std::reference_wrapper instead of raw pointer for non-null reference.