set maxscale install path /usr/local/skysql/maxscale
add -static for lmysqld
lstc should be dynamic
L:.a
Fix for missing maxscaled sources in Makefile. Resolves issue with
make clean not removing maxscaled.o
Merge branch 'static_lib' into develop
fix path for ldconfig
http://bugs.skysql.com/show_bug.cgi?id=453
Fixed bug in session command resul handling. In case where backend sent error message the session command cursor wasn't updated properly.

Added check to bref_clear_state, if bref's waiter counter would go negative, decrement to global operation counter is skipped.
Merge branch 'develop' of https://github.com/skysql/MaxScale into develop
revert -l:libmysqld.a to -lmysqld
Moved error messages about broken pipe to DEBUG build since in cases we've seen it is due to socket closing in same host. Other case is that MaxScale attempts to write COM_QUIT (ending message) to socket that other thread already closed.

Added counter clean-up code to readwritesplit closeSession. If operation counters have leaked, that is, due to some error in query routing some counter have been left positive, it is zeroed at session ending. This ensures that there is no garbage in global counter even if individual session wouldn't clean up its counters.
Comments updated in get_root_master()

Comments updated in get_root_master()