make buildme.sh more user-friendly

- use arg params instead of vars to control sub-builds
- add command line args for tests/clean
- check for required executables and libs