minor bug fixes and add haxelib support