Use cmake to detect stdint and static/dynamic