Updated for cross compiling.