some cmake scripts fixed