Adapted build file that was not working for Net CF