updated some files, rename .mk and add run-time cpu detection