remove unused script and adjust to build with 4.7