add some bugfixes and ideas from Ira
several build fixes
add test repository to test the perl installation environment