Fixed build issues with leapjs