[Build] Add in javacv platform detection stuffs