fixing library link error during gui compile