replace vasprintf implementation
update libmagic to 2013-01-11@361fc37

this fixes the windows build