Topic/stabilise build 1

Fixes for #144, #146, #150 #152, as per commits below. 
@betehess do you care to add a quick note on what should go for Ensime?