vector: Fix another possible memory corruption error

    Same logic as previous but in deletion

Signed-off-by: Oscar Suro <outercript@gmail.com>
vector: Add some extra rules to the Makefile

Signed-off-by: Oscar Suro <outercript@gmail.com>