fix and test --compile