[sam3a] apply SRCLIBDIR patch