strdup() -> apn_strndup()
Updated CMakeList.txt