Capture stderr when building