build: If user already has $PLATFORM defined, convert to lower case

Useful for when users already have `$PLATFORM` set to `uname -s`, but on e.g. OSX `uname -s` is equal to "Darwin", therefore the build is missing some symbols.