Updated madAPI to latest version with fixed build scripts.