Moved sun specific part out of usual compilation process.