Cross compilation

Review by @joriscode