Reorganised and switched to Autotool for normal cross compilation