add preinstall to prevent travis compile error