[fix] make static linking work correctly

22 jobs for bugfix-pmpi in 53 minutes and 43 seconds (queued for 2 seconds)