Exporting all sublibraries; cleanup

Exporting sqlite and restrictino libs; got rid of superfluous curry()
function.