added runtime library search method; fix actctx on 64; added tests; clean up: