Changed target Java to 1.6, fixed native binding