add versionName feature and build flags

remove warnings