Add a 'NoInteractiveTests' flag (default off) to skip interactive tests

Build with tests now works on NixOS