Some fixes for 1.4+ API. Added basic installer.