porting to Linux

Thank @cheaven outstanding laserkdb :)