Specifying static and multithread broke boost on NixOS.