small adoptions to ease cross compiling for RasPi