fixes compilation issues

still couldn't test code, arduino is being used.