fix to make qtentity work as a static library