compiles on NDK r9b if you comment out SWAP4 and SWAP8