remove -lmysqlclient when static linking.