Fixed external library functions.