define for static linking