build: convert predefined $PLATFORM to lower case