* updated premake.sh (better ways to get the logical cpu core count on osx/linux/*bsd)