compilation works with libw