Enable parallel builds

Reduces build time from 32s to 26s on my laptop.
Added some interface files
Cleaned up NsQuery API