fix some minor things

fix so that the package replaces the correct old package
simplified the add depends to the debug and static builds.
fix error when recompiling without removing src dir