Missing dependencies on static libraries