fixed lint error

added build check for linking