Because -static is being passed, extra linker flags are needed. Signed-off-by: Rosen Penev <rosenp@gmail.com>