remove memory leaks in player source

if the player_stop() function is called, the node is passed to the
calling thread, which is freeing the memory.

update makefile