fixed collada saving external refs
fixed windows compilation