Allow hexToRGB to work cross platform

use the optional base parameter instead of 0x, the 0x prefix is a gnuism and doesn't work on all implementations of libc. (lua just proxies call to strtod, which not all implementations have the 0x support) This was breaking hanappe mesh on emscripten