Keepalive when there are pointers to dll code