add compile time dependency checking for libfreshwrapper