Defined the LAV_PUBLIC_FUNCTION macro and fixed a warning.