[PATCH] Make the attach code build again on non-Linux hosts.