compile querying classes into static lib for integration into Moses