initial support for cross compilation