Fix options and add _CRT_SECURE_NO_WARNINGS