Compile on Solaris 11 (Solaris zone on SmartOS, with gcc 4.7 installed)

Trying to get Julia compiled on Solaris 11. Already fixed openspecfun, this came next.