clear out old dlopen code
minor whitespace
fix compile warnings