remove attributes at link time instead of compile