Configure script is still in bad shape though, needs much more time to be cleaned up for proper cross-compilability.